﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BaseFunction;

namespace YY.Web
{
    public partial class Default : BaseFunction.LoginHelp
    {
        protected Model.agent_users ModelAgentUsers;
        protected void Page_Load(object sender, EventArgs e)
        {
            ModelAgentUsers = base.GetSessionModel();
            hdnactionurl.Value = Request.QueryString["actionurl"];
        }

        protected void lbtnExit_Click(object sender, EventArgs e)
        {
            Session["AgentId"] = null;
            Utils.WriteCookie("YYAgentRememberName","");
            Utils.WriteCookie("YYAgentName", "YYAgent", -14400);
            Utils.WriteCookie("YYAgentPassword", "YYAgent", -14400);
            Response.Redirect("login.aspx");
        }
    }
}
